<template>
	<view class="container">
		<view class="top" @tap.stop="click">
			<view class="top-box">
				<slot name="title-left">
					<text class="title">{{config.title || ''}}</text>
				</slot>
				<view class="top-right">
					<slot name="title-right"></slot>
				</view>
			</view>
		</view>
		<slot name="content"></slot>
	</view>
</template>

<script>
	import QSSuperComponentCustomCompMixin from '../QSSuperComponentCustomCompMixin.js'
	export default {
		mixins: [QSSuperComponentCustomCompMixin({componentType:'bargainBuy-1'})],
		props: {
			config: {
				type: Object,
				default: ()=>({})
			},
		}
	}
</script>

<style scoped>
	.container {
		display: flex;
		flex-direction: column;

	}

	.top {
		height: 65rpx;
		/* margin-bottom: 24rpx; */
	}
	.top-box{
		display: flex;
		flex-direction: row;
		align-items: center;
	}

	.title {
		font-size: 30rpx;
		font-weight: bold;
	}

	.top-right {
		flex: 1;
	}
</style>
